package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffExecuteCycleStageDto
 * @使用场景
 */
@Data
public class BffExecuteCycleStageDto implements Serializable {

    /**
     * 执行周期阶段ID
     */
    @ApiModelProperty("执行周期阶段ID")
    private String executeCycleStageId;

    /**
     * 关联目标内容ID
     */
    @ApiModelProperty("关联目标内容ID")
    private String relateContentId;

    /**
     * 周期ID
     */
    @ApiModelProperty("周期ID")
    private String cycleId;

    /**
     * 是否父周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否父周期")
    private String isFatherCycle;

    /**
     * 是否子周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否子周期")
    private String isSubCycle;

    /**
     * 是否中期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否中期")
    private String isMetaphase;

    /**
     * 是否当前周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否当前周期")
    private String isCurrentCycle;

    /**
     * 周期名称
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 评价模板简称
     */
    @ApiModelProperty("评价模板简称")
    private String evaluationTempShortName;

    /**
     * 冗余目标ID
     */
    @ApiModelProperty("冗余目标ID")
    private String targetId;

    /**
     * 评价模板ID
     */
    @ApiModelProperty("评价模板ID")
    private String evaluationTemplateId;
    /**
     * 周期类型实例简称
     */
    @ApiModelProperty("周期类型实例简称")
    private String cycleNumberShortName;
    /**
     * 是否父周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否父周期")
    private String isParentCycle;
    /**
     * 周期开始时间
     */
    @ApiModelProperty("周期开始时间")
    private Date cycleStartTime;

    /**
     * 周期结束时间
     */
    @ApiModelProperty("周期结束时间")
    private Date cycleEndTime;
    /**
     * 归属评价主题ID
     */
    @ApiModelProperty("归属评价主题ID")
    private String evaluationSubjectId;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 被评对象目标周期ID
     */
    @ApiModelProperty("被评对象目标周期ID")
    private String evaObjTargetCycleId;
    /**
     * 规划类型 GENERAL_PLANNING:常规规划 THEMATIC_PLANNING:专题规划
     */
    @ApiModelProperty("规划类型")
    private String planningType;
    /**
     * 目标周期简称
     */
    @ApiModelProperty("目标周期简称")
    private String cyclelAlias;
    /**
     * 周期类型标识
     */
    @ApiModelProperty("周期类型标识")
    private String cycleTypeCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffExecuteCycleStageDto that = (BffExecuteCycleStageDto) o;
        return executeCycleStageId == that.executeCycleStageId && relateContentId == that.relateContentId && cycleId == that.cycleId && isFatherCycle == that.isFatherCycle && isSubCycle == that.isSubCycle && isMetaphase == that.isMetaphase && isCurrentCycle == that.isCurrentCycle && cycleStandardName == that.cycleStandardName && evaluationTempShortName == that.evaluationTempShortName && targetId == that.targetId && evaluationTemplateId == that.evaluationTemplateId && cycleNumberShortName == that.cycleNumberShortName && isParentCycle == that.isParentCycle && cycleStartTime == that.cycleStartTime && cycleEndTime == that.cycleEndTime && evaluationSubjectId == that.evaluationSubjectId && subjectLifeCycle == that.subjectLifeCycle && evaObjTargetCycleId == that.evaObjTargetCycleId && planningType == that.planningType && cyclelAlias == that.cyclelAlias && cycleTypeCode == that.cycleTypeCode;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), executeCycleStageId, relateContentId, cycleId, isFatherCycle, isSubCycle, isMetaphase, isCurrentCycle, cycleStandardName, evaluationTempShortName, targetId, evaluationTemplateId, cycleNumberShortName, isParentCycle, cycleStartTime, cycleEndTime, evaluationSubjectId, subjectLifeCycle, evaObjTargetCycleId, planningType, cyclelAlias, cycleTypeCode);
    }


}
   